package com.example.consumptionrecords.mapper;

import com.example.consumptionrecords.entity.dto.ConsumptionRecordsDTO;
import com.example.consumptionrecords.entity.dto.QueryConsumptionRecordsDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * hhzr9
 * 2024 \ 04 \ 07
 */

@Mapper
public interface ConsumptionRecordsServiceMapper {

	/**
	 * 按日期查询消费记录
	 * @param queryConsumptionRecordsVo 查询条件
	 * @param userId 用户ID
	 * @return 消费记录
	 */
	List<ConsumptionRecordsDTO> dateQueryConsumptionRecords(@Param(value = "queryConsumptionRecordsVo") QueryConsumptionRecordsDTO queryConsumptionRecordsVo,
															@Param(value = "userId")Integer userId);
}
